package dongchel.vrp.entity;

public class PDCity extends City {
	private double etime2;
	private double ltime2;
	
	private double pickupDemand;
	private double deliveryDemand;
	
	public PDCity cloneChild(){
		PDCity c = new PDCity();
		c.setEtime(this.getEtime());
		c.setId(this.getId());
		c.setRoute(this.getRoute());		
		c.setServiceTime(this.getServiceTime());
		c.setX(this.getX());
		c.setY(this.getY());
		c.setLtime(this.getLtime());
		c.setArrivalTime(this.getArrivalTime());	
		c.setAngle(this.getAngle());
		c.setPickupDemand(pickupDemand);
		c.setDeliveryDemand(deliveryDemand);
		
		return c;
	}
	
	public double getPickupDemand() {
		return pickupDemand;
	}
	public void setPickupDemand(double pickupDemand) {
		this.pickupDemand = pickupDemand;
	}
	public double getDeliveryDemand() {
		return deliveryDemand;
	}
	public void setDeliveryDemand(double deliveryDemand) {
		this.deliveryDemand = deliveryDemand;
	}

	public double getEtime2() {
		return etime2;
	}

	public void setEtime2(double etime2) {
		this.etime2 = etime2;
	}

	public double getLtime2() {
		return ltime2;
	}

	public void setLtime2(double ltime2) {
		this.ltime2 = ltime2;
	}
}
